package com.cskaoyan.mall.promo.dal.persistence;

import com.cskaoyan.mall.promo.dal.entitys.PromoItem;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface PromoItemMapper extends Mapper<PromoItem> {

    Integer decreaseStock(@Param(value = "productId") Long productId, @Param(value = "psId") Long psId);

    List<PromoItem> queryByPsId(Long id);
}